package com.ruoyi.system.service.impl;

import com.ruoyi.system.api.domain.SysLoginlogs;
import com.ruoyi.system.mapper.SysLoginlogsMapper;
import com.ruoyi.system.service.ISysLoginlogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysLoginlogsServiceImpl implements ISysLoginlogsService {
    @Autowired
    private SysLoginlogsMapper loginlogsMapper;

    @Override
    public int insertLoginlogs(SysLoginlogs loginlogs) {
        return loginlogsMapper.insertLoginlogs(loginlogs);
    }

    @Override
    public List<SysLoginlogs> selectLoginlogsList(SysLoginlogs loginlogs) {
        return loginlogsMapper.selectLoginlogsList(loginlogs);
    }

    @Override
    public void cleanLoginlogs() {
        loginlogsMapper.cleanLoginlogs();
    }

    @Override
    public int deleteLoginlogsByIds(Long[] infoIds) {
        return loginlogsMapper.deleteLoginlogsByIds(infoIds);
    }
}
